﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DAL;
namespace BLL
{
    public class ChiTietKhamBenhBLL
    {
        ChiTietKhamBenhDAL q = new ChiTietKhamBenhDAL();
        public List<CHITIETKHAMBENH> LayDSKhamBenh()
        {
            return q.LayDSKhamBenh();
        }
        public List<CHITIETKHAMBENH> LayDSKhamBenh(int maKB)
        {

            return q.LayDSKhamBenh(maKB);
        }
        public IQueryable LayDSThuocTheoPKB(int maKB)
        {
            return q.LayDSThuocTheoPKB(maKB);
        }
        public List<CHITIETKHAMBENH> LayDSCTKB_TEN(int maKB, string tenThuoc, string tenDV)
        {

            return q.LayDSCTKB_TEN( maKB,  tenThuoc,  tenDV);
        }
        public IQueryable LayDSCTKB(int maKB)
        {
            return q.LayDSCTKB(maKB);
        }
        public IQueryable LapPhieuKhamBenh()
        {
            return q.LapPhieuKhamBenh();
        }
        public bool ThemChiTietKhamBenh(CHITIETKHAMBENH s)
        {

            return q.ThemChiTietKhamBenh(s);
        }
        public bool suaChiTietKhamBenh(CHITIETKHAMBENH s)
        {
            return q.suaChiTietKhamBenh(s);
        }
        public bool xoaChiTietKhamBenh(int MaChiTietKhamBenh)
        {
            return q.xoaChiTietKhamBenh(MaChiTietKhamBenh);
        }
        public bool xoaChiTietKhamBenh(int maKB, string tenThuoc, string tenDV)
        {
            return q.xoaChiTietKhamBenh(maKB, tenThuoc, tenDV);
        }
        
        public int tinhTienThuoc(int maKhamBenh)
        {
            return q.tinhTienThuoc(maKhamBenh);

        }
    }
}
